//@author A0105740R
package rightnow.util;

public class UiMsg {
	public static final String MSG_ADD_SUCCESS = "Task added.";
	public static final String MSG_DEL_SUCCESS = "Task deleted.";
	public static final String MSG_DEL_DONE_SUCCESS = "All done tasks deleted.";
	public static final String MSG_EDIT_SUCCESS = "Task edited.";
	public static final String MSG_FUNCTION_UNDER_CONSTRUCTION =
			"The function will be supported soon :)";
	public static final String MSG_EMPTY = "";
	public static final String MSG_INVALID_INDEX = "Invalid index.";
	public static final String MSG_NO_NEXT_PAGE = "No next page.";
	public static final String MSG_NO_PREV_PAGE = "No previous page.";
	public static final String MSG_TASK_PINNED = "Task pinned";
	public static final String MSG_TASK_UNPINNED = "Task unpinned";
	public static final String MSG_CANNOT_UNDO = "Cannot undo.";
	public static final String MSG_CANNOT_REDO = "Cannot redo.";
	public static final String MSG_TASK_DONE = "Task done.";
	public static final String MSG_TASK_UNDONE = "Task not done.";
	public static final String MSG_INVALID_PAGE_NUM = "Invalid page number.";
	public static final String MSG_UNDO_SUCCESS = "Undo: %s.";
	public static final String MSG_REDO_SUCCESS = "Redo: %s.";
	
	public static final String MSG_VIEW_STATUS_ALL = "ALL";
	public static final String MSG_VIEW_STATUS_NOW = "NOW";
	public static String generateSearchViewStatusMsg(String searchTerm) {
		String[] tokens = searchTerm.split("\\s+");
		StringBuilder sBd = new StringBuilder();
		
		for (String str: tokens) {
			sBd.append("\"" + str + "\" ");
		}
		
		return sBd.toString();
	}
	
}
